package com.myzombieapocalypse.projectz.application;

import com.myzombieapocalypse.projectz.domain.Account;
import com.myzombieapocalypse.projectz.domain.AccountDAO;
import com.myzombieapocalypse.projectz.web.forms.Login;

/**
 * User: StuartS
 * Date: 02/11/11
 * Time: 19:41
 */
public class LoginFacadeTx implements LoginFacade {
    private AccountDAO accountDAO;

    public void setAccountDAO(AccountDAO accountDAO) {
        this.accountDAO = accountDAO;
    }

    public Account verifyLogin(Login login) {
        return accountDAO.getByEmailAndPassword(login.getEmail(), login.getPassword());
    }
}
